//创建类
class Student {
    private String name;
    private String studentID;
    private String age;
    private String personality;
    private String classes;
    private String gender;

    // 构建函数
    public Student(String name, String gender, String studentID, String age, String personality, String classes) {
        this.name = name;
        this.gender = gender;
        this.studentID = studentID;
        this.age = age;
        this.personality = personality;
        this.classes = classes;
    }

    // 获取变量
    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getStudentID() {
        return studentID;
    }

    public String getAge() {
        return age;
    }

    public String getPersonality() {
        return personality;
    }

    public String getClasses() {
        return classes;
    }

    // 输出学生信息格式
    public String toString() {
        return name + "," + gender + "," + studentID + "," + age +
                "," + personality + "," + classes;
    }

    public static void main(String[] args) {
        // 创建学生对象Student
        Student stu1 = new Student("我是陈平安", "是一名男同学", "我的学号是20241314", "今年20岁", "性格温和且社恐", "来自剑气长城幼儿园小班");
        Student stu2 = new Student("我是石昊", "是一名男同学", "我的学号是20241315", "今年19岁", "性格高冷且逗比", "来自新东方石村烹饪班");
        Student stu3 = new Student("我是萧火火,人称中州天才矫正器", "是一名男同学", "我的学号是20241316", "今年20岁", "性格猖狂且孤傲", "来自中州天才矫正班");

        // 输出信息
        System.out.println("陈平安的个人信息：");
        System.out.println(stu1.toString());
        System.out.println("石昊的个人信息：");
        System.out.println(stu2.toString());
        System.out.println("萧火火的个人信息：");
        System.out.println(stu3.toString());
    }
}
